package cn.xd.security.command;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author : mirzaLin
 * @data : 2023/12/9
 * @description :
 **/
@Data
public class PasswordWithVerifyLoginCommand {
    /**
     * 帐号
     */
    @NotBlank(message = "帐号不能为空")
    private String username;
    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    private String password;

    @NotNull(message = "机构不能为空")
    private Long orgId;

    @NotBlank(message = "验证码key不能为空")
    private String verifyCodeKey;

    @NotBlank(message = "验证码不能为空")
    private String verifyCode;

    @NotBlank(message = "访问来源")
    private String source;

    @NotNull(message = "app用户类型")
    private Integer type;
}
